<? include 'server_config.php'; 

if($user_idx=="")
{
	
	?>
	<script>
		alert("!");
	</script>
	<?
	return;
}

?>

<?

$sql = "

INSERT INTO ndd_memo (user_idx, target_idx, content, reg_timestamp) VALUES 
( $user_idx, '$target_idx', '$new_comment', CURRENT_TIMESTAMP);
";

//echo $sql;
$result = mysql_query($sql,$connect);


?>
